package com.mini.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mini.domain.BaseEntity;
import com.mini.enums.ReceiveStatus;
import com.mini.enums.SendStatus;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@TableName("mini_msg_send")
@Accessors(chain = true)
public class MsgSend extends BaseEntity {

    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 接收者
     */
    private Long userId;

    private String channels;

    /**
     * 发送时间
     */
    private SendStatus sendStatus;

    private Date sendTime;

    /**
     * 接收状态
     */
    private ReceiveStatus receiveStatus;

    private Date receiveTime;

}
